<?php
require 'Controller.php ';
require 'home/model/CommentModel.php';
class CommentController extends Controller{
    function __Construct(){
        parent::__Construct();
        $this->model = new CommentModel();
    }
    function add(){
        $data = $_POST;
        $model = new CommentModel();
        $result = $model->add($data);
        if($result){
            header("location:index.php?c=music&m=music&添加成功！");
        }
        else{
            echo "添加失败！<br/>";
            echo "<a href='index.php?c=music&m=music&'添加失败！'>返回</a>";
        }
    }
}
?>